<template>
  <div class="shuzijiaoyi">
    <div
      class="mainbigtopdiv2"
      :style="{ 'margin-top': widthshow ? '3%' : '5%' }"
    >
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop(4)">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjyjrzbje">
            {{ szjyshuzimesinfo.jrzbje || 0.0 }}
          </p>
          <div class="gridimgmoney"></div>
          <p class="fontstyle2">今日中标金额</p>
        </div>
      </div>
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop(5)">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjyjnzbje">
            {{ szjyshuzimesinfo.bnzbje || 0.0 }}
          </p>
          <div class="gridimgmoney"></div>
          <p class="fontstyle2">本年中标金额</p>
        </div>
      </div>
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop()">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjyljzbje">
            {{ szjyshuzimesinfo.ljzbje || 0.0 }}
          </p>
          <div class="gridimgmoney"></div>
          <p class="fontstyle2">累计中标金额</p>
        </div>
      </div>
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop(4)">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjyjrzbbs">
            {{ szjyshuzimesinfo.jrzbbs || 0 }}
          </p>
          <div class="gridimg"></div>
          <p class="fontstyle2">今日中标笔数</p>
        </div>
      </div>
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop(5)">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjybnzbbs">
            {{ szjyshuzimesinfo.bnzbbs || 0 }}
          </p>
          <div class="gridimg"></div>
          <p class="fontstyle2">本年中标笔数</p>
        </div>
      </div>
      <div class="topdetail2" @click="jiaoyizhongxinthirdpop()">
        <div class="topdetail2div">
          <p class="fontstyle1 hoverbig" id="szjyljzbbs">
            {{ szjyshuzimesinfo.ljzbbs || 0 }}
          </p>
          <div class="gridimg"></div>
          <p class="fontstyle2">累计中标笔数</p>
        </div>
      </div>
    </div>
    <div class="leftleft">
      <div class="mainbigtopdiv" style="position: relative">
        <div
          style="
            position: absolute;
            left: 3%;
            top: 0;
            width: 50%;
            display: flex;
          "
        >
          <div
            id="shuzijiaoyitopup"
            class="shuzijiaoyilefttop"
            :class="tabchange ? 'shuzijiaoyilefttopbg' : ''"
            @click="shuzijiaoyiclick(0)"
          >
            <p style="padding: 5%">累计</p>
          </div>
          <div
            id="shuzijiaoyidownup"
            class="shuzijiaoyilefttop"
            :class="tabchange ? '' : 'shuzijiaoyilefttopbg'"
            @click="shuzijiaoyiclick(1)"
          >
            <p style="padding: 5%">本年</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(1)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjygkzbje">
              {{ szjyshuzimesinfo.gkzbje || 0.0 }}
            </p>
            <div class="gridimgmoney"></div>
            <p class="fontstyle2">公开招标金额</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(2)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjyyqzbje">
              {{ szjyshuzimesinfo.yqzbje || 0.0 }}
            </p>
            <div class="gridimgmoney"></div>
            <p class="fontstyle2">邀请招标金额</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(3)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjyqtcgje">
              {{ szjyshuzimesinfo.qtcgje || 0.0 }}
            </p>
            <div class="gridimgmoney"></div>
            <p class="fontstyle2">其他采购金额</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(1)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjygkzbbs">
              {{ szjyshuzimesinfo.gkzbbs || 0 }}
            </p>
            <div class="gridimg"></div>
            <p class="fontstyle2">公开招标笔数</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(2)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjyyqzbbs">
              {{ szjyshuzimesinfo.yqzbbs || 0 }}
            </p>
            <div class="gridimg"></div>
            <p class="fontstyle2">邀请招标笔数</p>
          </div>
        </div>
        <div class="topdetail1" @click="jiaoyizhongxinthirdpop(3)">
          <div class="topdetail2div">
            <p class="fontstyle1 hoverbig" id="szjyqtcgbs">
              {{ szjyshuzimesinfo.qtcgbs || 0 }}
            </p>
            <div class="gridimg"></div>
            <p class="fontstyle2">其他采购笔数</p>
          </div>
        </div>
      </div>
      <div class="rightright" style="">
        <div class="szjytopright">
          <div class="szjytoprightpositiondiv">
            <p>采购类型分析</p>
            <div style="" class="radiogroupclass">
              <el-radio-group v-model="radiovalue" @change="handleChange">
                <el-radio :label="1">本年</el-radio>
                <div style="height: 25%"></div>
                <el-radio :label="2">累计</el-radio>
              </el-radio-group>
            </div>
          </div>
          <div style="width: 100%; height: 100%">
            <Echart
              ref="szjytoprightechatrs"
              id="szjytoprightechatrs"
              :options="szjjfirstpageoptions"
              height="100%"
              width="100%"
            ></Echart>
          </div>
        </div>
      </div>
    </div>
    <Dialogback :modalVisible="szjythirdpopvisiable" :title="poptitle">
      <template>
        <div style="width: 98%; height: 100%; margin: 0 auto">
          <div v-if="szjythirdpopvisiablebig" style="width: 100%; height: 100%">
            <Szjythirdshuzi :morenzhi="childsprops" :type="yqtype" />
          </div>
        </div>
      </template>
    </Dialogback>
  </div>
</template>

<script>
import APIS from "@/api/index";
import Szjythirdshuzi from "@/components/szjythirdshuzi.vue";
import Dialogback from "@/components/dialogback.vue";
import { yearDate, timestampToTime } from "@/utils/common";
import { Message } from "element-ui";
import Echart from "@/common/echart";
import * as echarts from "echarts";
export default {
  name: "szjydialog",
  components: {
    Echart,
    Dialogback,
    Szjythirdshuzi,
  },
  props: {},
  data() {
    return {
      widthshow: false,
      cgwcqkbingechatrsoptions: {},
      szjycgwcoptions: {},
      szjythirdpopvisiable: false,
      poptitle: "",
      szjythirdpopvisiablebig: false,
      szjjfirstpageoptions: {},
      radiovalue: 1,
      active: true,
      shuzijiaoyiclickavtivr: true,
      szjyjtcgxqoptions: {},
      szjyshuzimesinfo: {
        jrzbje: 0.0,
        jrzbbs: 0,
        ljzbje: 0.0,
        ljzbbs: 0,
        bnzbje: 0.0,
        bnzbbs: 0,
        gkzbje: 0.0,
        yqzbje: 0,
        qtcgje: 0.0,
        gkzbbs: 0,
        yqzbbs: 0,
        qtcgbs: 0,
      },
      tabchange: true,
      childsprops: "",
      yqtype: 0,
    };
  },
  mounted() {
    if (window.devicePixelRatio >= 1.5) {
      this.widthshow = true;
    }
    this.findTodayBidding();
    this.findAccumulativeBidding();
    this.findYearBidding();
    this.findPublicBidding();
    this.findInviteBidding();
    this.findPurchaseBidding();
    this.getpurchaseTypeAnalysis(1, 1);

    // window.addEventListener("resize", (e) => {
    //   console.log(11111)
    //    var mCharts=echarts.init(document.getElementById("szjytoprightechatrs"))
    //    mCharts.resize()
    // });
  },
  methods: {
    returnFloat(num) {
      num = (parseInt(num * 100) / 100).toFixed(2);

      // num = num.toString(); // 转成字符串类型  如能确定类型 这步可省去
      // if (num.indexOf(".") !== -1) {
      //   let [integerPart, decimalPart] = num.split(".");

      //   if (decimalPart.length > 2) {
      //     decimalPart = decimalPart.substring(0, 2);
      //   } else if (decimalPart.length === 1) {
      //     decimalPart += "0";
      //   }

      //   num = `${integerPart}.${decimalPart}`;
      // } else {
      //   num += ".00";
      // }

      return num;
    },
    shuzijiaoyiclick(index) {
      console.log(111);
      if (index == 0) {
        this.tabchange = true;
        this.findPublicBidding();
        this.findInviteBidding();
        this.findPurchaseBidding();
      } else {
        this.tabchange = false;
        this.findPublicBidding(1);
        this.findInviteBidding(1);
        this.findPurchaseBidding(1);
      }
    },
    findTodayBidding() {
      APIS.Szjy.findTodayBidding()
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.todayWinPrice &&
            res.data.todayWinPrice != null &&
            res.data.todayWinPrice != undefined
          ) {
            console.log(888);
            res.data.todayWinPrice = res.data.todayWinPrice - 0;
            // res.data.todayWinPrice = (res.data.todayWinPrice / 100000000).toFixed(2);
            res.data.todayWinPrice = this.returnFloat(
              res.data.todayWinPrice / 100000000
            );
          } else {
            console.log(9);
            // res.data.todayWinPrice = res.data.todayWinPrice.toFixed(2) || 0.0;
            res.data.todayWinPrice = this.returnFloat(res.data.todayWinPrice);
          }
          this.szjyshuzimesinfo.jrzbje = res.data.todayWinPrice;
          this.szjyshuzimesinfo.jrzbbs = res.data.todayWinNum;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    findAccumulativeBidding() {
      APIS.Szjy.findAccumulativeBidding()
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.sumTotalPrice &&
            res.data.sumTotalPrice != null &&
            res.data.sumTotalPrice != undefined
          ) {
            console.log(777);
            res.data.sumTotalPrice = res.data.sumTotalPrice - 0;
            // res.data.sumTotalPrice = (res.data.sumTotalPrice / 100000000).toFixed(2);
            res.data.sumTotalPrice = this.returnFloat(
              res.data.sumTotalPrice / 100000000
            );
          } else {
            // res.data.sumTotalPrice = res.data.sumTotalPrice.toFixed(2) || 0.0;
            res.data.sumTotalPrice = this.returnFloat(res.data.sumTotalPrice);
          }
          this.szjyshuzimesinfo.ljzbje = res.data.sumTotalPrice;
          this.szjyshuzimesinfo.ljzbbs = res.data.num - 0;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    findYearBidding() {
      APIS.Szjy.findYearBidding()
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.sumTotalPrice &&
            res.data.sumTotalPrice != null &&
            res.data.sumTotalPrice != undefined
          ) {
            console.log(666);
            res.data.sumTotalPrice = res.data.sumTotalPrice - 0;
            // res.data.sumTotalPrice = ( res.data.sumTotalPrice / 100000000 ).toFixed(2);
            res.data.sumTotalPrice = this.returnFloat(
              res.data.sumTotalPrice / 100000000
            );
          } else {
            // res.data.sumTotalPrice = res.data.sumTotalPrice.toFixed(2) || 0.0;
            res.data.sumTotalPrice = this.returnFloat(res.data.sumTotalPrice);
          }
          this.szjyshuzimesinfo.bnzbje = res.data.sumTotalPrice;
          this.szjyshuzimesinfo.bnzbbs = res.data.num - 0;
        })
        .catch((err) => {
          console.log(err);
        });
    },

    findPublicBidding(year) {
      let data = {};
      if (year) {
        data["year"] = yearDate();
      }
      APIS.Szjy.findPublicBidding(data)
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.totalPrice &&
            res.data.totalPrice != null &&
            res.data.totalPrice != undefined
          ) {
            res.data.totalPrice = res.data.totalPrice - 0;
            // res.data.totalPrice = (res.data.totalPrice / 100000000).toFixed(2);
            res.data.totalPrice = this.returnFloat(
              res.data.totalPrice / 100000000
            );
          } else {
            // res.data.totalPrice = res.data.totalPrice.toFixed(2) || 0.0;
            res.data.totalPrice = this.returnFloat(res.data.totalPrice || 0);
          }

          this.szjyshuzimesinfo.gkzbje = res.data.totalPrice;
          this.szjyshuzimesinfo.gkzbbs = res.data.num;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    findInviteBidding(year) {
      let data = {};
      if (year) {
        data["year"] = yearDate();
      }
      APIS.Szjy.findInviteBidding(data)
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.totalPrice &&
            res.data.totalPrice != null &&
            res.data.totalPrice != undefined
          ) {
            res.data.totalPrice = res.data.totalPrice - 0;
            // res.data.totalPrice = (res.data.totalPrice / 100000000).toFixed(2);
            res.data.totalPrice = this.returnFloat(
              res.data.totalPrice / 100000000
            );
          } else {
            // res.data.totalPrice = res.data.totalPrice.toFixed(2) || 0.0;
            res.data.totalPrice = this.returnFloat(res.data.totalPrice || 0);
          }

          this.szjyshuzimesinfo.yqzbje = res.data.totalPrice;
          this.szjyshuzimesinfo.yqzbbs = res.data.num;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    findPurchaseBidding(year) {
      let data = {};
      if (year) {
        data["year"] = yearDate();
      }
      APIS.Szjy.findPurchaseBidding(data)
        .then((res) => {
          console.log(res, "res");
          if (
            res.data.sumTotalPrice &&
            res.data.sumTotalPrice != null &&
            res.data.sumTotalPrice != undefined
          ) {
            res.data.sumTotalPrice = res.data.sumTotalPrice - 0;
            // res.data.sumTotalPrice = ( res.data.sumTotalPrice / 100000000 ).toFixed(2);
            res.data.sumTotalPrice = this.returnFloat(
              res.data.sumTotalPrice / 100000000
            );
          } else {
            // res.data.sumTotalPrice = res.data.sumTotalPrice.toFixed(2) || 0.0;
            res.data.sumTotalPrice = this.returnFloat(res.data.sumTotalPrice);
          }

          this.szjyshuzimesinfo.qtcgje = res.data.sumTotalPrice;
          this.szjyshuzimesinfo.qtcgbs = res.data.num;
        })
        .catch((err) => {
          console.log(err);
        });
    },
    jiaoyizhongxinthirdpop(index) {
      let str = "";
      //4 今日  5 本年 1 公开 2 邀请 3 其他（  (如果是本年，要加上传本年时间) this.tabchange  true 累计  false 本年）
      //
      if (index == 1 || index == 2 || index == 3) {
        // gkyqqttype = index;
        this.yqtype = index;
        if (!this.tabchange) {
          str = new Date().getFullYear();
          this.childsprops = [`${str}-01-01`, `${str}-12-31`];
        } else {
          this.childsprops = [];
        }
      } else if (index == 4) {
        this.yqtype = "";
        this.childsprops = [timestampToTime(), timestampToTime()];
      } else if (index == 5) {
        this.yqtype = "";
        str = new Date().getFullYear();
        this.childsprops = [`${str}-01-01`, `${str}-12-31`];
      } else {
        this.yqtype = "";
        this.childsprops = [];
      }

      console.log(index);
      this.poptitle = "交易中心";
      this.szjythirdpopvisiable = true;
      this.szjythirdpopvisiablebig = true;
    },

    getpurchaseTypeAnalysis(year, num) {
      let dataarr = [];
      let data = {};
      if (year) {
        data["year"] = yearDate();
      }
      APIS.Szjy.purchaseTypeAnalysis(data)
        .then((res) => {
          console.log(res, "res");
          let max = 0;
          res.data.map((item, index) => {
            item.totalprice = item.totalprice - 0;
            max += item.totalprice;
          });
          res.data.map((item, index) => {
            let num = this.returnFloat((item.totalprice / max) * 100);
            // let num = Math.floor((item.totalprice*100)/100 / max) * 100;
            // console.log(num,'num',num.toString().match(/^\d+(?:\.\d{0,2})?/)[0]-0)
            dataarr.push({
              // value: (item.totalprice / 100000000).toFixed(2),
              value: Math.floor(item.totalprice / 1000000) / 100,
              name: item.objectName,
              // zb: num.toFixed(2) ,
              zb: num - 0,
            });
          });
          console.log(dataarr, "dataarr");
          if (num == 2) {
            let myChart = echarts.init(
              document.getElementById("szjytoprightechatrs")
            );
            myChart.setOption({
              series: [
                {
                  type: "pie",
                  radius: ["0%", "54%"],
                  center: ["center", "center"],
                  hoverAnimation: false,
                  z: 999,
                  labelLine: {
                    normal: {
                      show: false,
                      length: 5,
                      length2: 5,
                    },
                  },
                  data: [
                    {
                      name: "",
                      value: 0,
                      itemStyle: {
                        normal: {
                          color: "#edf1f9",
                          // color: 'red'
                        },
                      },
                      tooltip: {
                        show: false,
                      },
                    },
                  ],
                },
                {
                  label: {
                    normal: {
                      textStyle: {
                        color: "#192C55", // 改变标示文字的颜色
                      },
                      formatter: function (params) {
                        let target;
                        let zb1;
                        for (let i = 0; i < dataarr.length; i++) {
                          if (dataarr[i].name === params.name) {
                            target = dataarr[i].value;
                            zb1 = dataarr[i].zb;
                          }
                        }
                        return `${params.name}:占比:${zb1}%`;
                        // return `${params.name}:\n${target}亿元\n占比:${zb1}%`
                      },
                    },
                  },
                  data: dataarr,
                },
              ],
            });
            window.addEventListener("resize", function () {
              myChart.resize();
            });
          } else {
            this.renderszjjfirstbingtu(dataarr);
          }
        })
        .catch((err) => {
          console.log(err);
        });
    },
    handleChange(val) {
      console.log(val);
      if (val == 1) {
        this.getpurchaseTypeAnalysis(1, 2);
      } else {
        this.getpurchaseTypeAnalysis(0, 2);
      }
    },
    handleCurrentPageChange(val) {
      console.log(val);
      // this.pagination.currentPage = val
      // getDataList()
    },
    renderszjjfirstbingtu(data) {
      let labellength = {};
      let fontsizesty = 10;
      if (window.devicePixelRatio == 1.5 || window.devicePixelRatio == 1.25) {
        labellength = {
          show: true,
          // length: 32,
          // length2: 55,
          length: 12,
          length2: 12,
          lineStyle: {
            type: "dashed",
          },
        };
      } else {
        labellength = {
          show: true,
          length: 32,
          length2: 55,
          // length: 12,
          // length2:12,
          lineStyle: {
            type: "dashed",
          },
        };
      }
      this.szjjfirstpageoptions = {
        tooltip: {
          trigger: "item",
          formatter: function (params) {
            return `${params.marker}  ${params.name}:${params.value}亿元`;
          },
        },
        series: [
          {
            type: "pie",
            radius: ["0%", "54%"],
            center: ["center", "center"],
            hoverAnimation: false,
            z: 999,
            labelLine: {
              normal: {
                show: false,
                length: 5,
                length2: 5,
              },
            },
            data: [
              {
                name: "",
                value: 0,
                itemStyle: {
                  normal: {
                    color: "#edf1f9",
                    // color: 'red'
                  },
                },
                tooltip: {
                  show: false,
                },
              },
            ],
          },
          {
            name: "采购类型分析",
            type: "pie",
            radius: ["45%", "75%"],
            center: ["center", "center"],
            // roseType: 'area',
            itemStyle: {
              normal: {
                color: function (colors) {
                  var colorList = [
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                    "#6236fe",
                    "#182c56",
                    "#fdb57a",
                    "#41d6b7",
                    "#63f5ff",
                    "#75a8f2",
                    "#4381f9",
                  ];
                  return colorList[colors.dataIndex];
                },
              },
            },
            labelLine: {
              normal: labellength,
            },
            label: {
              normal: {
                textStyle: {
                  color: "#192C55", // 改变标示文字的颜色
                  align: "right",
                  fontSize: fontsizesty,
                },
                formatter: function (params) {
                  let target;
                  let zb1;
                  for (let i = 0; i < data.length; i++) {
                    if (data[i].name === params.name) {
                      target = data[i].value;
                      zb1 = data[i].zb;
                    }
                  }
                  return `${params.name}:占比:${zb1}%`;
                },
              },
            },
            data: data,
            startAngle: 20, //起始角度
          },
        ],
      };
      const tast = this; //szjytoprightechatrs
      window.addEventListener("resize", function () {
        tast.$refs.szjytoprightechatrs.resize();
      });
    },
    closepopup() {
      this.poptitle = "";
      this.szjythirdpopvisiable = false;
      this.szjythirdpopvisiablebig = false;
    },
  },
};
</script>

<style scoped lang="scss">
.shuzijiaoyi {
  width: 98%;
  box-sizing: border-box;
  margin: 0 auto;
  height: 100%;
  position: relative;
  scroll-behavior: smooth;
  overflow: hidden;
  font-size: 1rem;

  .lengend1 {
    height: 5%;
    display: flex;
    align-items: center;
    margin-left: 14%;
    font-size: 18px;
    .lengend1small {
      display: flex;
      align-items: center;
      margin-right: 1%;
      .lengend1smalldiv {
        width: 23px;
        height: 10px;
        background-color: #182c56;
        border-radius: 2px;
      }
    }
  }
  .lengend2 {
    display: flex;
    align-items: center;
    .lengend2small {
      width: 23px;
      height: 3px;
      background: linear-gradient(90deg, #ffc346, #b3001e, #ffc346);
      border-radius: 2px;
    }
  }

  .lenged3 {
    width: 46%;
    margin-left: 30%;
    position: absolute;
    bottom: -0.7rem;
    left: 14%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    .lenged3small {
      display: flex;
      align-items: center;
      .lenged3smalldiv {
        width: 1.15rem;
        height: 0.5rem;
        background-color: #182c56;
        border-radius: 2px;
        font-size: 0.8rem;
      }
    }
  }
  .bottomdiv {
    height: 49%;
    display: flex;
    .bottomdivsmall {
      height: 100%;
      width: 50%;
    }
  }
  .szjyleftbottomechartheight {
    height: 90%;
    display: flex;
    justify-content: space-around;
    .szjyleftbottomechartheightsmall {
      padding-top: 8%;
      padding-left: 2%;
      .szjyleftbottomechartheightsmalltopdetail1 {
        width: 100%;
        height: 37%;
      }
    }
  }
  .mainbigtopdiv2 {
    width: 98%;
    height: 20%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border: 0.05rem solid #192c55;
    margin: 0 auto;
    border-radius: 0.25rem;
    margin-top: 5%;
    margin-bottom: 3%;
    .topdetail2 {
      height: 100%;
      width: 15%;
      display: flex;
      align-items: center;
      justify-content: space-around;
      .topdetail2div {
        height: 100%;
      }
    }
  }
  .leftleft {
    height: 52%;
    width: 98%;
    display: flex;
    margin: 0 auto;
    .mainbigtopdiv {
      width: 45%;
      height: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      border: 0.05rem solid #192c55;
      border-radius: 0.25rem;
      padding-top: 3%;
      padding-bottom: 3%;
      box-sizing: border-box;
      .shuzijiaoyilefttop {
        font-size: 0.75rem;
        height: 50%;
        width: 50%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #192c55;
        margin-right: 0.25rem;
        background: rgba(25, 44, 85, 0.2);
        border-radius: 0 0 0.25rem 0.25rem;
      }
      .shuzijiaoyilefttopbg {
        background-color: #162a54;
        color: white;
      }
      .topdetail1 {
        height: 50%;
        width: 33%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        .topdetail2div {
          height: 100%;
        }
      }
    }
    .rightright {
      width: 43vw;
      height: 38vh;
      // border: 1px solid yellow;
      display: flex;
      flex-direction: column;
      .szjytopright {
        flex: 1;
        position: relative;
        width: 100%;
        height: 100%;
        .szjytoprightpositiondiv {
          width: 6rem;
          height: 5rem;
          position: absolute;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
          margin: auto;
          z-index: 99;
          display: flex;
          align-items: center;
          justify-content: space-around;
          flex-direction: column;
          p {
            font-size: 0.9rem;
            color: #192c55;
            text-align: center;
          }
          .radiogroupclass {
            display: flex;
            flex-direction: column;
            padding-left: 6%;
          }
        }
      }
    }
  }
  .maindivsamll {
    width: 100%;
    height: 100%;
    .szjytitle {
      display: flex;
      align-items: center;
      .szjytitletext {
        width: 0px;
        height: 0.95rem;
        border: 0.1rem solid #192c55;
        margin-right: 0.25rem;
      }
    }
  }
}
</style>
 

